package com.tz.service.impl;

import com.tz.entity.User;
import com.tz.mapper.LoginMapper;
import com.tz.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
 * 本类用来实现登录登出
 * @author Cunese
 * @date 17-12-29
 */
@Service
@Transactional
public class LoginServiceImpl implements LoginService {
    @Autowired
    LoginMapper loginMapper;

    /**
     *用户登录
     */
    @Override
    public User login(String username, String password) {
        return loginMapper.selectUser(username, password);
    }
    /**
     * 用户登出
     */
    @Override
    public void logout() {

    }
}
